/**
 * 
 */
package gamePlay;

import java.util.List;

import datatype.Question;
import datatype.Statistics;

/**
 * @author Yuval
 *	extends the AbsChain, and add some fields and functions for the Level type 
 */
public class ChainOfLevel extends AbsChain{
	
	
	public ChainOfLevel(List<Question> questions, int level) {
		super(questions);
		this.level = level;
	}

	private int level = 1;

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	@Override
	public void finish(long time, Statistics stats) {
		stats.setLevel(level);
		super.finish(time, stats);
	}
	
	

}
